import request from '@/utils/request'

//回款列表
export function receivedList(query) {
  return request({
    url: '/payment_received/list',
    method: 'get',
	 params: query
  })
}
//回款新增
export function addReceived(data) {
  return request({
    url: '/payment_received',
    method: 'post',
	data:data
  })
}
//回款删除
export function delReceived(id) {
  return request({
    url: '/payment_received/'+id,
    method: 'DELETE'
  })
}
//获取详情
export function receivedDetail(id) {
  return request({
    url: '/payment_received/businessCode/'+id,
    method: 'get'
  })
}
//编辑/payment_received
export function editReceived(data) {
  return request({
    url: '/payment_received',
    method: 'put',
	data:data
  })
}
//客户查重
export function customerIsExist(id) {
  return request({
    url: '/customer/customerIsExist/'+id,
    method: 'get'
  })
}
//回款审批列表
export function paymentReceivedList(query) {
  return request({
    url: '/audit/paymentReceivedList',
    method: 'get',
	 params: query
  })
}